package statis

type StatisItem struct {
	Date         string `json:"date"`
	StatisId     string `json:"statis_id"`
	StatisTDesc  string `json:"statisT_desc"`
	TotalOrder   int    `json:"total_order"`
	ActualPay    string `json:"actual_pay"` //元：.2f
	pay          int
	TotalRevenue string `json:"total_revenue"`
	revenue      int
	P1Machine    string `json:"p1_machine"`
	O1Machine    string `json:"o1_machine"`
	P1Order      string `json:"p1_order"`
	WashedNum    int    `json:"washed_num"`
	washerNum    int    `json:"washer_num"`
}

type StatisResp struct {
	Sum  *StatisItem   `json:"sum"`
	Part []*StatisItem `json:"part"`
}

//统计页面返回的数据结构
type WashRoomProfit struct {
	LeagueProfit
	WashRoomId string `json:"washroom_id"`
}

type LeagueProfit struct {
	DateFlag        string `json:"date_flag"`
	LeagueId        string `json:"league_id"`
	LeagueName      string `json:"league_name"`
	WashingOrder    int    `json:"washing_order"`
	WashingProfit   string `json:"washing_profit"`
	WashingTotal    string  `json:"washing_total"`
	WashingPeer     int    `json:"washing_peer"`
	WasherNumActive int    `json:"washer_num_active"`
	WasherNumUse    int    `json:"washer_num_use"`
	So1m            string `json:"s_o1m"`
	Sp1m            string `json:"s_p1m"`
	Lo1m            string `json:"l_o1m"`
	Lp1m            string `json:"l_p1m"`
	O1u             string `json:"o1u"`
	U1m             string `json:"u1m"`
	//	WashRoomName    string `json:"washroom_name"`
}

type WasherProfit struct {
	DateFlag      string `json:"date_flag"`
	WasherId      string `json:"washer_id"`
	WashRoomId    string `json:"wash_room_id"`
	WashingOrder  int    `json:"washing_order"`
	WashingProfit string `json:"washing_profit"`
	WashingPeer   int    `json:"washing_peer"`
	WashingTotal  int    `json:"washing_total"`
}
